package cn.itcast.wanxinp2p.consumer.agent;

import cn.itcast.wanxinp2p.account.model.account.AccountDTO;
import cn.itcast.wanxinp2p.account.model.account.AccountRegisterDTO;
import cn.itcast.wanxinp2p.common.domain.RestResponse;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @email 1572178030@qq.com
 * @author:黄海宾
 * @date: 2023/3/30  22:22
 */

@FeignClient(name = "account-service")
public interface AccountApiAgent {

    @ApiOperation("用户注册")
    @ApiImplicitParam(name = "accountRegisterDTO", value = "账户注册信息", required = true, dataType = "AccountRegisterDTO", paramType = "body")
    @PostMapping(value = "/l/accounts")
    public RestResponse<AccountDTO> register(@SpringQueryMap AccountRegisterDTO accountRegisterDTO);
}
